import QtQuick 1.1

Rectangle {
    id: canvas
    width: 16
    height: 16
    property string text: ""
    signal clicked()
    color: Qt.rgba(0, 0, 0, 0)

    Text {
        id: label
        text: canvas.text
        color: "black"
    }

    MouseArea {
        id: mouse
        anchors.fill: parent
        onEntered: label.color = "gray"
        onExited: label.color = "black"
        onClicked: canvas.clicked()
    }
}
